import app from './app/index'
import './app/database'
import { APP_NAME, APP_PORT } from './app/config'

app.listen(APP_PORT, () => {
  console.log(`
  .______        ______     ______         _______. _______ .______     ____    ____  _______ .______      
  |   _  \\      /  __  \\   /      |       /       ||   ____||   _  \\    \\   \\  /   / |   ____||   _  \\     
  |  |_)  |    |  |  |  | |  ,----'      |   (----\`|  |__   |  |_)  |    \\   \\/   /  |  |__   |  |_)  |    
  |      /     |  |  |  | |  |            \\   \\    |   __|  |      /      \\      /   |   __|  |      /     
  |  |\\  \\----.|  \`--'  | |  \`----.   .----)   |   |  |____ |  |\\  \\----.  \\    /    |  |____ |  |\\  \\----.
  | _| \`._____| \\______/   \\______|   |_______/    |_______|| _| \`._____|   \\__/     |_______|| _| \`._____|                                                                                                         
    
    `)
  console.log(`${APP_NAME}在${APP_PORT}端口启动成功~`)
})
